package com.fc.mall.portal.domain;

import com.fc.mall.portal.dto.GroupBuyerDto;
import com.fc.mall.portal.vo.PmsProductVO;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * Created by sunny on 2019/8/16.
 */
@Getter
@Setter
public class GroupBuyProduct extends PmsProductVO {

    /**
     * 商品信息
     *
     * @mbggenerated
     */
    private Long productId;

    /**
     * ,几人团
     *
     * @mbggenerated
     */
    private Integer groupCount;

    /**
     * 团购价
     *
     * @mbggenerated
     */
    private BigDecimal groupPrice;

    /**
     * 开团持续时间
     *
     * @mbggenerated
     */
    private Integer activeHour;

    /**
     * 已团人数
     *
     * @mbggenerated
     */
    private Integer totalCount;

    /**
     * 状态
     *
     * @mbggenerated
     */
    private Integer status;

    /**
     * 限购数量
     *
     * @mbggenerated
     */
    private Integer limitCount;

    /**
     * 过期时间
     *
     * @mbggenerated
     */
    private Integer expiredTime;

    /**
     * 起始时间
     *
     * @mbggenerated
     */
    private Integer effectTime;

    /**
     * 开团团长信息
     */
    List<GroupBuyerDto> groupBuyerList = new ArrayList<>();

    /**
     * 是否成团
     */
    private boolean hasGroup;

    /**
     * 已参团的ID
     */
    private Long orderGroupId;

}
